<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>GrPPI: mpmc_queue.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GrPPI
   &#160;<span id="projectnumber">0.2</span>
   </div>
   <div id="projectbrief">Generic and Reusable Parallel Pattern Interface</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0966d06610f72609fd9aa4979c2b5a92.html">common</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">mpmc_queue.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;vector&gt;</code><br />
<code>#include &lt;atomic&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;mutex&gt;</code><br />
<code>#include &lt;condition_variable&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for mpmc_queue.h:</div>
<div class="dyncontent">
<div class="center"><img src="mpmc__queue_8h__incl.png" border="0" usemap="#mpmc__queue_8h" alt=""/></div>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="mpmc__queue_8h__dep__incl.png" border="0" usemap="#mpmc__queue_8hdep" alt=""/></div>
<map name="mpmc__queue_8hdep" id="mpmc__queue_8hdep">
<area shape="rect" id="node2" href="parallel__execution__native_8h.html" title="parallel_execution\l_native.h" alt="" coords="2431,80,2557,121"/>
<area shape="rect" id="node31" href="parallel__execution__omp_8h.html" title="parallel_execution\l_omp.h" alt="" coords="873,80,1000,121"/>
<area shape="rect" id="node41" href="parallel__execution__tbb_8h.html" title="parallel_execution\l_tbb.h" alt="" coords="1576,80,1703,121"/>
<area shape="rect" id="node3" href="native_2divideconquer_8h.html" title="divideconquer.h" alt="" coords="419,244,532,271"/>
<area shape="rect" id="node5" href="polymorphic__execution_8h.html" title="polymorphic_execution.h" alt="" coords="1448,169,1615,196"/>
<area shape="rect" id="node22" href="native_2farm_8h.html" title="farm.h" alt="" coords="658,244,717,271"/>
<area shape="rect" id="node23" href="native_2map_8h.html" title="map.h" alt="" coords="2443,244,2502,271"/>
<area shape="rect" id="node24" href="native_2mapreduce_8h.html" title="mapreduce.h" alt="" coords="2888,169,2985,196"/>
<area shape="rect" id="node25" href="native_2reduce_8h.html" title="reduce.h" alt="" coords="2422,169,2494,196"/>
<area shape="rect" id="node26" href="native_2stream__reduce_8h.html" title="stream_reduce.h" alt="" coords="2628,244,2747,271"/>
<area shape="rect" id="node27" href="native_2stencil_8h.html" title="stencil.h" alt="" coords="2569,169,2640,196"/>
<area shape="rect" id="node28" href="native_2pipeline_8h.html" title="pipeline.h" alt="" coords="2786,169,2863,196"/>
<area shape="rect" id="node29" href="native_2stream__filter_8h.html" title="stream_filter.h" alt="" coords="3009,169,3115,196"/>
<area shape="rect" id="node30" href="native_2stream__iteration_8h.html" title="stream_iteration.h" alt="" coords="3139,169,3265,196"/>
<area shape="rect" id="node4" href="divideconquer_8h.html" title="divideconquer.h" alt="" coords="371,319,484,345"/>
<area shape="rect" id="node6" href="poly_2divideconquer_8h.html" title="divideconquer.h" alt="" coords="1016,244,1129,271"/>
<area shape="rect" id="node7" href="poly_2farm_8h.html" title="farm.h" alt="" coords="1154,244,1213,271"/>
<area shape="rect" id="node9" href="poly_2map_8h.html" title="map.h" alt="" coords="1755,244,1814,271"/>
<area shape="rect" id="node11" href="poly_2mapreduce_8h.html" title="mapreduce.h" alt="" coords="2321,244,2419,271"/>
<area shape="rect" id="node13" href="poly_2reduce_8h.html" title="reduce.h" alt="" coords="1237,244,1309,271"/>
<area shape="rect" id="node15" href="poly_2stencil_8h.html" title="stencil.h" alt="" coords="1839,244,1909,271"/>
<area shape="rect" id="node17" href="poly_2pipeline_8h.html" title="pipeline.h" alt="" coords="2118,244,2195,271"/>
<area shape="rect" id="node19" href="poly_2stream__filter_8h.html" title="stream_filter.h" alt="" coords="1333,244,1439,271"/>
<area shape="rect" id="node20" href="poly_2stream__iteration_8h.html" title="stream_iteration.h" alt="" coords="1463,244,1589,271"/>
<area shape="rect" id="node21" href="poly_2stream__reduce_8h.html" title="stream_reduce.h" alt="" coords="1613,244,1732,271"/>
<area shape="rect" id="node8" href="farm_8h.html" title="farm.h" alt="" coords="599,319,658,345"/>
<area shape="rect" id="node10" href="map_8h.html" title="map.h" alt="" coords="1870,319,1929,345"/>
<area shape="rect" id="node12" href="mapreduce_8h.html" title="mapreduce.h" alt="" coords="2689,319,2787,345"/>
<area shape="rect" id="node14" href="reduce_8h.html" title="reduce.h" alt="" coords="977,319,1049,345"/>
<area shape="rect" id="node16" href="stencil_8h.html" title="stencil.h" alt="" coords="2080,319,2151,345"/>
<area shape="rect" id="node18" href="pipeline_8h.html" title="pipeline.h" alt="" coords="2347,319,2425,345"/>
<area shape="rect" id="node32" href="omp_2divideconquer_8h.html" title="divideconquer.h" alt="" coords="5,244,119,271"/>
<area shape="rect" id="node33" href="omp_2farm_8h.html" title="farm.h" alt="" coords="285,244,343,271"/>
<area shape="rect" id="node34" href="omp_2map_8h.html" title="map.h" alt="" coords="791,244,850,271"/>
<area shape="rect" id="node35" href="omp_2mapreduce_8h.html" title="mapreduce.h" alt="" coords="1887,169,1984,196"/>
<area shape="rect" id="node36" href="omp_2reduce_8h.html" title="reduce.h" alt="" coords="531,169,603,196"/>
<area shape="rect" id="node37" href="omp_2stream__reduce_8h.html" title="stream_reduce.h" alt="" coords="143,244,261,271"/>
<area shape="rect" id="node38" href="omp_2stencil_8h.html" title="stencil.h" alt="" coords="1639,169,1709,196"/>
<area shape="rect" id="node39" href="omp_2pipeline_8h.html" title="pipeline.h" alt="" coords="1785,169,1862,196"/>
<area shape="rect" id="node40" href="omp_2stream__filter_8h.html" title="stream_filter.h" alt="" coords="401,169,507,196"/>
<area shape="rect" id="node42" href="tbb_2divideconquer_8h.html" title="divideconquer.h" alt="" coords="703,169,816,196"/>
<area shape="rect" id="node43" href="tbb_2farm_8h.html" title="farm.h" alt="" coords="841,169,899,196"/>
<area shape="rect" id="node44" href="tbb_2map_8h.html" title="map.h" alt="" coords="1985,244,2043,271"/>
<area shape="rect" id="node45" href="tbb_2mapreduce_8h.html" title="mapreduce.h" alt="" coords="2664,169,2761,196"/>
<area shape="rect" id="node46" href="tbb_2reduce_8h.html" title="reduce.h" alt="" coords="1075,169,1147,196"/>
<area shape="rect" id="node47" href="tbb_2stream__reduce_8h.html" title="stream_reduce.h" alt="" coords="873,244,992,271"/>
<area shape="rect" id="node48" href="tbb_2stencil_8h.html" title="stencil.h" alt="" coords="2143,169,2213,196"/>
<area shape="rect" id="node49" href="tbb_2pipeline_8h.html" title="pipeline.h" alt="" coords="2259,169,2337,196"/>
<area shape="rect" id="node50" href="tbb_2stream__filter_8h.html" title="stream_filter.h" alt="" coords="2008,169,2113,196"/>
</map>
</div>
</div>
<p><a href="mpmc__queue_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1mpmc__queue.html">grppi::mpmc_queue&lt; T &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacegrppi"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegrppi.html">grppi</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:aa0514650a765d4853343655e7588662b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegrppi.html#aa0514650a765d4853343655e7588662b">grppi::queue_mode</a> { <a class="el" href="namespacegrppi.html#aa0514650a765d4853343655e7588662bac6235a845472fa847daf07edbbf5fa18">grppi::queue_mode::lockfree</a> = true, 
<a class="el" href="namespacegrppi.html#aa0514650a765d4853343655e7588662ba14343966a1d7dce7526e57cf2206d19d">grppi::queue_mode::blocking</a> = false
 }</td></tr>
<tr class="separator:aa0514650a765d4853343655e7588662b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
